package com.source.lightfowl.config;

import com.source.lightfowl.utils.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * @Description:
 * @Author: Faink
 * @CreateTime: 2020/9/24 20:26
 */

@Configuration
@ComponentScan(basePackages = "com.source.lightfowl")
@EnableJpaRepositories(basePackages = {
        "com.source.lightfowl.basedata.dao",
        "com.source.lightfowl.barcodeMachineGrantAndRecovery.dao",
        "com.source.lightfowl.barcodeMachineRepair.dao",
        "com.source.lightfowl.idcardgrantandrecovery.dao",
        "com.source.lightfowl.labelingRecord.dao",
        "com.source.lightfowl.person.dao",
        "com.source.lightfowl.syslog.dao"
})
public class LightfowlConfig {
    @Bean
    public IdWorker getIdWorker() {
        return new IdWorker();
    }
}
